package com.ios.dto;

import com.ios.entity.PsychologicalTest;
import com.ios.entity.PsychologicalTestType;
import com.ios.enums.PsychologicalTestEnum;

import java.util.List;

/**
*@Author:WenTao
*@Description:测试表中间返回类型
*@Date:11:34 2018/7/20
*/
public class PsychologicalTestExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*测试类型list*/
    private List<PsychologicalTest> psychologicalTestList;

    /*操作失败时的构造器*/
    public PsychologicalTestExecution(PsychologicalTestEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public PsychologicalTestExecution(PsychologicalTestEnum stateEnum, List<PsychologicalTest> psychologicalTestList){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.psychologicalTestList=psychologicalTestList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public List<PsychologicalTest> getPsychologicalTestList() {
        return psychologicalTestList;
    }

    public void setPsychologicalTestList(List<PsychologicalTest> psychologicalTestList) {
        this.psychologicalTestList = psychologicalTestList;
    }
}
